<div class='header-wrap'>
    <div class='header'>
        <!-- 未登录果仁支付官网头部 -->
        <div class='header-logout-wrap' ng-if='vm.headerType===3'>
            <span class='header-logo-text'>lkex控制中心</span>
            <span class='header-logout' ng-click='vm.logout()'>你好，请登录</span>
        </div>

        <!-- 登录后头部 -->
        <div class="header-loginlogout-wrap" ng-if='vm.headerType===4'>
            <!--头部导航-->
            <span class='header-logo-text'>lkex控制中心</span>
            <ul class="header-nav">
                <li ng-if="vm.returnRolePerm('用户')" class="nav-item"><a class="nav-item-link" href="#/admin/user" ng-class="{'nav-item-link--active':vm.$location.path().indexOf('/admin')==0}">用户</a></li>
                <li ng-if="vm.returnRolePerm('角色')" class="nav-item"><a class="nav-item-link" href="#/role/list" ng-class="{'nav-item-link--active':vm.$location.path().indexOf('/role')==0}">角色</a></li>
                <li ng-if="vm.returnRolePerm('用户管理')" class="nav-item"><a class="nav-item-link" href="#/commonusers/commonusers" ng-class="{'nav-item-link--active':vm.$location.path().indexOf('/commonuser')==0 }">用户管理</a></li>
                <li ng-if="vm.returnRolePerm('资产管理')" class="nav-item"><a class="nav-item-link" href="#/coinin/btc" ng-class="{'nav-item-link--active':vm.$location.path().indexOf('/coin')==0 }">资产管理</a></li>
                <li ng-if="vm.returnRolePerm('交易管理')" class="nav-item"><a class="nav-item-link" href="#/trade/record" ng-class="{'nav-item-link--active':vm.$location.path().indexOf('/trade')==0 }">交易管理</a></li>
                <li ng-if="vm.returnRolePerm('网站维护')" class="nav-item"><a class="nav-item-link" href="#/setting/coin-config" ng-class="{'nav-item-link--active':vm.$location.path().indexOf('/setting')==0 }">网站维护</a></li>
                <li ng-if="vm.returnRolePerm('控制面板')" class="nav-item"><a class="nav-item-link" href="#/account/set-pwd" ng-class="{'nav-item-link--active':vm.$location.path().indexOf('/account')==0 }">控制面板</a></li>
                <li ng-if="vm.returnRolePerm('券商账户')" class="nav-item"><a class="nav-item-link" href="#/users/companylist" ng-class="{'nav-item-link--active':vm.$location.path().indexOf('/users')==0 }">券商账户</a></li>
                <li ng-if="vm.returnRolePerm('公告发布')" class="nav-item"><a class="nav-item-link" href="#/notice/list" ng-class="{'nav-item-link--active':vm.$location.path().indexOf('/notice')==0 }">公告发布</a></li>
            </ul>
            <span class='header-logout' ng-click='vm.logout()'>退出</span>
        </div>

        <div class="header-loginlogout-wrap" ng-if='vm.headerType===5'>
            <!--头部导航-->
            <span class='header-logo-text'>lkex控制中心</span>
            <ul class="header-nav">
                <li ng-if="vm.returnRolePerm('用户')" class="nav-item"><a class="nav-item-link" href="#/admin/user" ng-class="{'nav-item-link--active':vm.$location.path().indexOf('/admin')==0}">用户</a></li>
                <li ng-if="vm.returnRolePerm('角色')" class="nav-item"><a class="nav-item-link" href="#/role/list" ng-class="{'nav-item-link--active':vm.$location.path().indexOf('/role')==0}">角色</a></li>
                <li ng-if="vm.returnRolePerm('用户管理')" class="nav-item"><a class="nav-item-link" href="#/commonusers/commonusers" ng-class="{'nav-item-link--active':vm.$location.path().indexOf('/commonuser')==0 }">用户管理</a></li>
                <li ng-if="vm.returnRolePerm('资产管理')" class="nav-item"><a class="nav-item-link" href="#/coinin/btc" ng-class="{'nav-item-link--active':vm.$location.path().indexOf('/coin')==0 }">资产管理</a></li>
                <li ng-if="vm.returnRolePerm('交易管理')" class="nav-item"><a class="nav-item-link" href="#/trade/record" ng-class="{'nav-item-link--active':vm.$location.path().indexOf('/trade')==0 }">交易管理</a></li>
                <li ng-if="vm.returnRolePerm('网站维护')" class="nav-item"><a class="nav-item-link" href="#/setting/coin-config" ng-class="{'nav-item-link--active':vm.$location.path().indexOf('/setting')==0 }">网站维护</a></li>
                <li ng-if="vm.returnRolePerm('控制面板')" class="nav-item"><a class="nav-item-link" href="#/account/set-pwd" ng-class="{'nav-item-link--active':vm.$location.path().indexOf('/account')==0 }">控制面板</a></li>
                <li ng-if="vm.returnRolePerm('券商账户')" class="nav-item"><a class="nav-item-link" href="#/users/companylist" ng-class="{'nav-item-link--active':vm.$location.path().indexOf('/users')==0 }">券商账户</a></li>
                <li ng-if="vm.returnRolePerm('公告发布')" class="nav-item"><a class="nav-item-link" href="#/notice/list" ng-class="{'nav-item-link--active':vm.$location.path().indexOf('/notice')==0 }">公告发布</a></li>
            </ul>
            <span class='header-logout' ng-click='vm.logout()'>退出</span>
            <span class="header-logout">账号：{{vm.accountNo}}</span>
        </div>
    </div>
</div>

